import * as PLANMODULAPI  from '../../../apis/planModul';

import * as MultiOptions from './MultiOptions';
import {WeaLocaleProvider} from 'ecCom';
const getLabel = WeaLocaleProvider.getLabel;

let FormFields =()=>{
    let FormFields={
        "condition": [
            {
                "title": `${getLabel(81711,'基本信息')}`,
                "items": [
                    {
                        "colSpan": 2,
                        "conditionType": "INPUT",
                        "domkey": [
                            "name"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(24986,'标题')}`,
                        "labelcol": 6,
                        "value": "",
                        "viewAttr": 3
                    },

                    {
                      "colSpan": 2,
                      "conditionType": "SELECT",
                      "domkey": [
                          "workPlanType"
                      ],
                      "fieldcol": 12,
                      "isQuickSearch": false,
                      "label": `${getLabel(16094,'日程类型')}`,
                      "labelcol": 6,
                      "options": MultiOptions.type_n_Options,
                      "viewAttr": 2
                    },
                    
                    {
                      "colSpan": 2,
                      "conditionType": "SELECT",
                      "domkey": [
                          "secretLevel"
                      ],
                      "fieldcol": 12,
                      "isQuickSearch": false,
                      "label": `${getLabel(500520,'密级')}`,
                      "labelcol": 6,
                      "options": MultiOptions.secretLevelOption,
                      "viewAttr": 3
                    },
                    {
                        "colSpan": 2,
                        "conditionType": "SELECT",
                        "domkey": [
                            "urgentlevel"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(15534,'紧急程度')}`,
                        "labelcol": 6,
                        "detailtype": 1,
                        "options": MultiOptions.urgentlevelOptions(),
                        "viewAttr": 2
                    },
                    {
                        "colSpan": 2,
                        "conditionType": "TEXTAREA",
                        "domkey": [
                            "description"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(33368,'内容')}`,
                        "labelcol": 6,
                        "value": "",
                        "viewAttr": 2,
                        "maxRows": 4,
                    },
                    {
                        "colSpan": 2,
                        "conditionType": "INPUT",
                        "domkey": [
                            "submiter"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(616,'提交人')}`,
                        "labelcol": 6,
                        "value": "",
                        "viewAttr": 1
                    },

                    {
                        "browserConditionParam": {
                            hasAddBtn:false,
                            hasAdvanceSerach:true,
                            isAutoComplete:1,
                            isDetail:0,
                            isMultCheckbox:false,
                            isSingle:false,
                            linkUrl:"/hrm/resource/HrmResource.jsp?id=",
                            quickSearchName:"",
                            title:`${getLabel(83496,'多人力资源')}`,
                            type:"17",
                            viewAttr:3,

                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "principal"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(2097,'负责人')}`,
                        "labelcol": 6,
                        "viewAttr": 3
                    },

                    {
                        "colSpan": 2,
                        "conditionType": "SELECT",
                        "domkey": [
                            "remindType"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(19781,'日程提醒方式')}`,
                        "labelcol": 6,
                        "detailtype": 2,
                        "options": MultiOptions.remindTypeOptions(),
                        "viewAttr": 2
                    },

                    {
                        "colSpan": 2,
                        //想用wea-form组件搭配自定义的 表单，这个得这么自定义
                        "conditionType": "CUSTOME",
                        "domkey": [
                            "custome"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(19783,'日程提醒时间')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },


                    {
                        "browserConditionParam": {
                            replaceDatas: [],
                            hasAddBtn: false,
                            hasAdvanceSerach: true,
                            idSeparator: ",",
                            isAutoComplete: 1,
                            isDetail: 0,
                            isMultCheckbox: false,
                            isSingle: false,
                            linkUrl: "/spa/document/index.jsp?id=",
                            pageSize: 10,
                            quickSearchName: "",
                            title: `${getLabel(22243,'文档')}`,
                            type: "9",
                            viewAttr: 2,
                            inputStyle: {width: '250px'},
                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "docid"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(857,'相关文档')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "browserConditionParam": {
                            replaceDatas: [],
                            hasAddBtn: false,
                            hasAdvanceSerach: true,
                            idSeparator: ",",
                            isAutoComplete: 1,
                            isDetail: 0,
                            isMultCheckbox: false,
                            isSingle: false,
                            linkUrl: "/workflow/request/ViewRequestForwardSPA.jsp?fromModul=meeting&modulResourceId=&isrequest=1&requestid=",
                            pageSize: 10,
                            quickSearchName: "",
                            tabs: [{isSearch: 'false', key: "1", name: `${getLabel(332,'全部')}`, selected: 'false'}, {
                                isSearch: 'false',
                                key: "2",
                                name: `${getLabel(18030,'我的收藏')}`,
                                selected: 'false'
                            }],
                            title: `${getLabel(30045,'流程')}`,
                            type: "152",
                            viewAttr: 2,
                            inputStyle: {width: '250px'},
                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "requestid"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(22105,'相关流程')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "browserConditionParam": {
                            replaceDatas: [],
                            hasAddBtn: false,
                            hasAdvanceSerach: true,
                            idSeparator: ",",
                            isAutoComplete: 1,
                            isDetail: 0,
                            isMultCheckbox: false,
                            isSingle: false,
                            linkUrl: "/spa/crm/static/index.html#/main/crm/customerView?customerId=",
                            pageSize: 10,
                            quickSearchName: "",
                            title: `${getLabel(136,'客户')}`,
                            type: "7",
                            viewAttr: 2,
                            inputStyle: {width: '250px'},

                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "crmid"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(783,'相关客户')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "browserConditionParam": {
                            replaceDatas: [],
                            hasAddBtn: false,
                            hasAdvanceSerach: true,
                            idSeparator: ",",
                            isAutoComplete: 1,
                            isDetail: 0,
                            isMultCheckbox: false,
                            isSingle: false,
                            linkUrl: "/spa/prj/index.html#/main/prj/projectCard?prjid=",
                            pageSize: 10,
                            quickSearchName: "",
                            title: `${getLabel(101,'项目')}`,
                            type: "8",
                            viewAttr: 2,
                            inputStyle: {width: '250px'},

                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "projectid"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(782,'相关项目')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "browserConditionParam": {
                            replaceDatas: [],
                            hasAddBtn: false,
                            hasAdvanceSerach: true,
                            idSeparator: ",",
                            isAutoComplete: 1,
                            isDetail: 0,
                            isMultCheckbox: false,
                            isSingle: true,
                            linkUrl: "/spa/prj/index.html#/main/prj/taskCard?taskid=",
                            pageSize: 10,
                            quickSearchName: "",
                            title: `${getLabel(33414,'项目任务')}`,
                            type: "prjtsk",
                            icon: "icon-blog-Task",
                            iconBgcolor: "#217346",
                            viewAttr: 2,
                            inputStyle: {width: '250px'},

                        },
                        "colSpan": 2,
                        "conditionType": "BROWSER",
                        "domkey": [
                            "taskid"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel('33414','相关任务')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "colSpan": 2,
                        //想用wea-form组件搭配自定义的 表单，这个得这么自定义
                        "conditionType": "CUSTOME",
                        "domkey": [
                            "timeModul"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(18221,'定期模式')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "colSpan": 2,
                        //想用wea-form组件搭配自定义的 表单，这个得这么自定义
                        "conditionType": "CUSTOME",
                        "domkey": [
                            "times"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(19798,'持续时间')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },
                    {
                        "colSpan": 2,
                        //想用wea-form组件搭配自定义的 表单，这个得这么自定义
                        "conditionType": "CUSTOME",
                        "domkey": [
                            "deadTime"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(15030,'有效期')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },

                    {
                        "colSpan": 2,
                        "conditionType": "CHECKBOX",
                        "domkey": [
                            "immediatetouch"
                        ],
                        "fieldcol": 12,
                        "isQuickSearch": false,
                        "label": `${getLabel(23231,'立即触发')}`,
                        "labelcol": 6,
                        "viewAttr": 2
                    },


                ],
                "defaultshow": true
            }
        ]
    };
    return FormFields;
}

export {FormFields}


